<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Vue中使用animate.csss库</title>
    <script src="../vue.js"></script>
    <link rel="stylesheet" type="text/css" href="./animate.css">

</head>
<body>
    <div id="root"> 
        <transition 
            name = "fade"
            enter-active-class=”animate__animated animate__swing”
            leave-active-class="animate__animated animate__shake"
        >
            <div v-if ="show">hello world </div>
        </transition>       
        <button @click="handleBtnClick">change</button>
    </div>   
    
    <script>    
       
    
        var root = new Vue({
            el: '#root',
            data: {
                show: true
            },            
            methods: {
                handleBtnClick: function(){
                    this.show = ! this.show
                }
            }        
           
        });
    </script>
</body>
</html>